<?php
/**
 * Description of Account
 *
 * @author Gowork
 */
class Application_Model_Account extends App_Model_Abstract {
    
    protected $_id_account = null;
    protected $_acl_role = null;
    protected $_id_person = null;
    protected $_email = null;
    protected $_password = null;
    protected $_activation = null;
    protected $_create = null;
    
    public function getId_account() {
        return $this->_id_account;
    }

    public function setId_account($id_account) {
        $this->_id_account = $id_account;
    }

    public function getAcl_role() {
        return $this->_acl_role;
    }

    public function setAcl_role($acl_role) {
        
        if(!key_exists((int)$acl_role, Application_Model_Role::$R_names)) {
            throw new Exception('Identyfikator roli ('.$acl_role.') nie istnieje');
        } 
        $this->_acl_role = (int)$acl_role;        
        
    }

    public function getId_person() {
        return $this->_id_person;
    }

    public function setId_person($id_person) {
        $this->_id_person = (int)$id_person;
    }

    public function getEmail() {
        return $this->_email;
    }

    public function setEmail($email) {
        $this->_email = $email;
    }

    public function getPassword() {
        return $this->_password;
    }

    public function setPassword($password) {
        $this->_password = $password;
    }

    public function getActivation() {
        return $this->_activation;
    }

    public function setActivation($activation) {
        $this->_activation = $activation;
    }

    public function getCreate() {
        return $this->_create;
    }

    public function setCreate($create) {
        $this->_create = $create;
    }


    
}

?>
